#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# Gitee API 配置
REPO_OWNER = "openeuler"
REPO_NAME = "docs-centralized"
ACCESS_TOKEN = "348827a99303b1904d8f38728ec96ad6"

# API 基础URL
GITEE_API_BASE = "https://gitee.com/api/v5"

# 请求配置
REQUEST_TIMEOUT = 10
DEFAULT_PER_PAGE = 100

# 文件路径配置（统一到项目根下的 data 目录）
DEFAULT_OUTPUT_DIR = "./data"
RAW_DATA_DIR = "./data/raw"
PROCESSED_DATA_DIR = "./data/processed"

# 日志配置
LOG_LEVEL = "INFO"
LOG_FORMAT = "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
LOG_FILE = "./logs/run.log"

# 过滤器配置（直观结构：规则名 => 参数）
FILTER_CONFIG = {
    'file_extension': {
        'allowed_extensions': ['.md']
    },
    'type_base': {
        'allowed_types': ['modify']
    },
    'markdown_heading_level': {},
    'list_style_change': {},
    'content_length': {
        'min_length': 6
    },

    # 以下规则由于与label有冲突，因此不启用，可以按需启用
    # 'trivial_whitespace': {},
    # 'code_block_language_tag': {},
    # 'punctuation_change': {},
    # 'url_change': {},
    # 'trailing_symbol_change': {
    #     'trailing_symbols': [
    #         '。', '，', '；', '：', '！', '？', '"', "'",
    #         '.', ',', ';', ':', '!', '?', '"', "'",
    #         ' ', '\t', '\n', '、', '…', '~', '-', '_'
    #     ]
    # }
}


